//
//  RefundCell.m
//  PaiLeXiongProject
//
//  Created by 小獾科技 on 2017/9/7.
//  Copyright © 2017年 小獾科技. All rights reserved.
//

#import "RefundCell.h"

@implementation RefundCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _label = [[UILabel alloc] initWithFrame:CGRectMake(40, 0, GWIDTH - 80, 44)];
        _label.text = @"不想要了";
        _label.textAlignment = 1;
        _label.textColor = ColorFrom16(0x333333);
        _label.font = PFRFONT(14);
        [self addSubview:_label];
        
        _view = [[UIView alloc] initWithFrame:CGRectMake(GWIDTH - 40, 14, 18, 18)];
        _view.layer.borderColor = ColorFrom16(0xe1e1e1).CGColor;
        _view.layer.borderWidth = 2;
        [self addSubview:_view];
        
        _selectImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 18, 18)];
        _selectImg.hidden = YES;
        _selectImg.image = IMAGE(@"refund_selected");
        [_view addSubview:_selectImg];
        
        UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 43, GWIDTH, 1)];
        line.backgroundColor = COLOR_BACKGROUND;
        [self addSubview:line];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
